package com.chixing.day20_annotation_jdk8.annotation;

/**
 * 性别赋值
 */
import java.lang.annotation.*;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD,ElementType.METHOD})
@Inherited
public @interface InitSex {

    enum SEX_TYPE {MAN,WOMAN}
    SEX_TYPE sex() default SEX_TYPE.MAN;
}
